package com.hhd.day02


fun main(args: Array<String>) {
    /*整型区间----------------------------*/
    val range1 = 1..100
    val range2 = IntRange(1, 100)
    val range3 = 1.rangeTo(100)
    println("整型区间= " + range3)


    /*长整型区间----------------------------*/
    val range4 = 1L..100L
    val range5 = LongRange(1L, 100L)
    val range6 = 1L.rangeTo(100L)
    println("长整型区间= " + range6)


    /*字符区间----------------------------*/
    val range7 = 'a'..'z'
    val range8 = CharRange('a', 'z')
    val range9 = 'a'.rangeTo('z')
    println("字符区间= " + range9)

}